package com.config.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Jason
 * @date 2022年06月13日 下午9:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResult {
    @ApiModelProperty(value = "提示信息")
    private String msg;
    @ApiModelProperty(value = "错误码(200为成功)",example = "200")
    private int code;
    @ApiModelProperty(value = "是否成功")
    public boolean isSuccess(){
        return code == ResponseCode.SUCCESS.getCode();
    };
}
